package com.ck.demo.service.impl;

import com.ck.demo.dao.DeptDao;
import com.ck.demo.entity.Dept;
import com.ck.demo.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Resource
    DeptDao deptDao;
    @Override
    public List<Dept> listDept() {
        return deptDao.listDept();
    }
}
